package com.zhenwei.service.impl;

import com.zhenwei.dao.CustomerDao;
import com.zhenwei.domain.Customer;
import com.zhenwei.service.CustomerService;
import org.aspectj.lang.annotation.Around;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {

    @Autowired
    private CustomerDao customerDao;
    @Override
    public List<Customer> findAll() {
        return customerDao.findAll();
    }

    @Override
    public Customer findById(String custId) {
        return customerDao.findById(custId);
    }

    @Override
    public void update(Customer customer) {
        customerDao.update(customer);
    }
}
